package main

import (
	"fmt"
	"github.com/hprose/hprose-go"
	"reflect"
	"time"
)

type TestUser struct {
	Name     string
	Sex      int
	Birthday time.Time
	Age      int
	Married  bool
}

type remoteObject struct {
	GetUserList func() []TestUser
}

func main() {
	hprose.ClassManager.Register(reflect.TypeOf(TestUser{}), "User")
	client := hprose.NewClient("http://www.hprose.com/example/")
	var ro *remoteObject
	client.UseService(&ro)

	fmt.Println(ro.GetUserList())
}
